<template>
	<div class="card content-box" v-waterMark="{ text: 'tinyTimi Admin', textColor: 'rgba(180,180,180,0.6)' }">
		<span class="text">防抖指令</span>
		<el-button type="primary" v-debounce="debounceClick"> 防抖按钮 (0.5秒后执行) </el-button>
	</div>
</template>

<script lang="ts" setup name="debounceDirect">
import { ElMessage } from "element-plus";

const debounceClick = () => {
	ElMessage.success("我是防抖事件！");
};
</script>